<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<mesoBoard.Data.ForumPermission>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm()) {%>
    
        <fieldset>
            <legend><%= Html.ThemeImage("zones.png") %>Create Forum Permissions</legend>
            
            <dl class="form">
            
                <dt>Forum</dt>
                <dd>
                    <%= Html.DropDownList("ForumID")%>
                </dd>
                
                <dt>Role</dt>
                <dd>
                    <%= Html.DropDownList("RoleID") %>
                </dd>
                
                <dt>Visibility</dt>
                <dd>
                    <%= Html.RadioButton("Visibility", "0", true, new { id = "Visibility0" })%> <label class="inline" for="Visibility0">Hidden</label>  
                    <br />
                    <%= Html.RadioButton("Visibility", "1", new { id = "Visibility1" })%> <label class="inline" for="Visibility1">Visible</label>
                </dd>
                
                <dt>Posting</dt>
                <dd>
                    <%= Html.RadioButton("Posting", "0", true, new { id = "Posting0" })%> <label class="inline" for="Posting0">Can't Post</label>
                    <br />
                    <%= Html.RadioButton("Posting", "1", new { id = "Posting1" })%> <label class="inline" for="Posting1">Can Reply</label>
                    <br />
                    <%= Html.RadioButton("Posting", "2", new { id = "Posting2" })%> <label class="inline" for="Posting2">Can Create Thread</label>
                    <br />
                    <%= Html.RadioButton("Posting", "3", new { id = "Posting3" })%> <label class="inline" for="Posting3">Can Create Stickies</label>
                    <br />
                    <%= Html.RadioButton("Posting", "4", new { id = "Posting4" })%> <label class="inline" for="Posting4">Can Create Announcements</label>
                </dd>
                
                <dt>Attachments</dt>
                <dd>
                    <%= Html.RadioButton("Attachments", "0", true, new { id = "Attachments0" })%> <label class="inline" for="Attachments0">Can't Create/DownloadAttachments</label>
                    <br />
                    <%= Html.RadioButton("Attachments", "1", new { id = "Attachments1" })%> <label class="inline" for="Attachments1">Can Download Attachments</label>
                    <br />
                    <%= Html.RadioButton("Attachments", "2", new { id = "Attachments2" })%> <label class="inline" for="Attachments2">Can Create Attachments</label>
                </dd>
                
                <dt>Polling</dt>                
                <dd>
                    <%= Html.RadioButton("Polling", "0", true, new { id = "Polling0" })%> <label class="inline" for="Polling0">Can't Vote</label>
                    <br />
                    <%= Html.RadioButton("Polling", "1", new { id = "Polling1" })%> <label class="inline" for="Polling1">Can Vote</label>
                    <br />
                    <%= Html.RadioButton("Polling", "2", new { id = "Polling2" })%> <label class="inline" for="Polling2">Can Create Polls</label>
                    <br />
                </dd>
                                
                <dt>&nbsp;</dt>
                <dd>
                    <%= Html.Hidden("ForumID") %>
                    <%= Html.Hidden("ForumPermissionID") %>
                    <%= Html.Hidden("Name", "fPerm") %>
                    <%= Html.SubmitButton("CreateForumPermission", "Create Forum Permission") %>
                </dd>
                
            </dl>
            
        </fieldset>
    <% } %>



</asp:Content>

